#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
using namespace std;

class Solution {
public:
    vector<int> GetLeastNumbers_Solution(vector<int> input, int k)
    {
        sort(input.begin(), input.end());
        vector<int> output;
        if (k == 0 || k > input.size()) return output;

        return vector<int>({ input.begin(), input.begin() + k });
    }
};